home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998…eptember: Technology Seed / September 98 ADC Seed CD.toast / FireWire 1.1 DR2 SDK / Source / OpenTransport / FWOTDriver / EntryPoints.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-15  |  3.0 KB  |  109 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        EntryPoints.h
  3.  
  4.     Contains:    This file contains misc. items for the EntryPoints.c file
  5.     Written by:    
  6.  
  7.     Copyright:    © 1993-1996 by Apple Computer, Inc., all rights reserved.
  8.  
  9.     Change History (most recent first):
  10.  
  11.        <FW7>    12/27/96    ES        Changed a bunch of "FWDriver"s to "FWClient"s. Changed to
  12.                                     protocol driver.
  13.        <FW6>    12/16/96    ES        Changed to work with new read/write/lock request/complete
  14.                                     processing mechanism.
  15.        <FW5>     9/16/96    ES        Changed FireWire driver interface procs to return command
  16.                                     acceptance.
  17.        <FW4>     8/29/96    ES        Changed FWDriverInterface to FWDriverWriteRequestInterface.
  18.        <FW3>     6/20/96    ES        Made this look more like a .i generated interface.
  19.        <FW2>     4/15/96    ES        Update for use with Driver Notification services.
  20.        <FW1>     3/27/96    ES        first checked in
  21.  
  22.     To Do:
  23. */
  24.  
  25. #ifndef __ENTRYPOINTS__
  26. #define __ENTRYPOINTS__
  27.  
  28. #ifndef __FIREWIRE__
  29. #include <FireWire.h>
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. #if PRAGMA_IMPORT_SUPPORTED
  37. #pragma import on
  38. #endif
  39.  
  40. #if PRAGMA_ALIGN_SUPPORTED
  41. #pragma options align=mac68k
  42. #endif
  43.  
  44. //-----------------------------------------------------------------------------------------
  45. //    Function Prototypes
  46. //-----------------------------------------------------------------------------------------
  47.  
  48. void EnqueueElementAtHead(QHdr *theQHdr, QElem *theElem, UInt16 whichIntsOff);
  49. void EnqueueElement(QHdr *theQHdr, QElem *theElem, UInt16 whichIntsOff);
  50. QElem *DequeueHead(QHdr *theHdr, UInt16 whichIntsOff);
  51. QElem *DequeueElement(QHdr *theQHdr, QElem *theElem, UInt16 whichIntsOff);
  52.  
  53. OTResult ValidateHardware(RegEntryID *theID);
  54. Boolean    InitStreamModule(RegEntryID *theID);
  55. void TerminateStreamModule(void);
  56. OSErr InitCFMRoutine(CFragInitBlock *theInitBlock);
  57. void TerminateCFMRoutine(void);
  58. install_info* GetOTInstallInfo(void);
  59.  
  60. int OpenServiceRoutine(queue_t *q, dev_t *, int, int, cred_t *);
  61. int CloseServiceRoutine(queue_t *q, int, cred_t *);
  62. int WritePutRoutine(queue_t *q, mblk_t *mp);
  63. int WriteServiceRoutine(queue_t *q);
  64.  
  65. void IOCtlTheStream(queue_t *, mblk_t *);
  66. void FlushTheStream(queue_t *, mblk_t *);
  67. UInt16 GenerateUniqueMinorDevice(void);
  68. Boolean CheckThisMinorDevice(UInt16 minorDeviceNumber);
  69. void AttemptPacketSend(void);
  70. void PreparePacketToBeSent(mblk_t *thePacket);
  71.  
  72. pascal void RxDTCallback(void *theParam);
  73. pascal void TxDTCallback(void *theParam);
  74. void HandleTimerMessages(queue_t *writeQueue, mblk_t *mp);
  75.  
  76.  
  77.  
  78. Boolean OTInitModule(void);
  79. void OTTerminateModule(void);
  80.  
  81. OSStatus    FWClientWriteCompleteInterface (
  82.     FWClientAsynchRequestParamsPtr
  83.                                 pFWClientAsynchRequestParams,
  84.     UInt32                        *pCommandAcceptance);
  85.  
  86. OSStatus    FWPDriverUnitAdded (
  87.     FWPDriverID                    fwPDriverID,
  88.     UInt32                        fwPDriverSpecificData,
  89.     FWDriverID                    fwUnitID);
  90.  
  91. OSStatus    FWPDriverUnitRemoved (
  92.     FWPDriverID                    fwPDriverID,
  93.     UInt32                        fwPDriverSpecificData,
  94.     FWDriverID                    fwUnitID);
  95.  
  96. #if PRAGMA_ALIGN_SUPPORTED
  97. #pragma options align=reset
  98. #endif
  99.  
  100. #if PRAGMA_IMPORT_SUPPORTED
  101. #pragma import off
  102. #endif
  103.  
  104. #ifdef __cplusplus
  105. }
  106. #endif
  107.  
  108. #endif /* __ENTRYPOINTS__ */
  109.